export function getStarUserIdAPI(userId: number) {
  return request.get(`/houseStar/${userId}`)
}

export function checkIsStarAPI(userId: number, houseId: number) {
  return request.get(`/houseStar/check?userId=${userId}&houseId=${houseId}`)
}

export function starHouseAPI(userId: number, houseId: number) {
  return request.post(`/houseStar`, {
    userId,
    houseId,
  })
}

export function deleteStarAPI(userId: number, houseId: number) {
  return request.delete(`/houseStar?userId=${userId}&houseId=${houseId}`)
}
